1
general::
Phrase(s): come within an ace of something
to come very close to [doing] something. • I came within an ace of leaving school. I’m glad you talked me out of it. • Donna came within an ace of having an accident.
McGrawhill's American Idioms And Phrasal Verbs